<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link th:href="@{/css/test1.css}" rel="stylesheet">
</head>
<body>

    <center>
        <table class="tb">
            <tr>
                <td>用户名</td>
                <td>性别</td>
                <td>年龄</td>
                <td>出生日期</td>
            </tr>
            <tr th:each="stu : ${stus}">
                <td th:text="${stu.name}">hqj</td>
                <td th:text="${stu.sex} eq '1'?'男':'女'">男</td>
                <td th:if="${stu.age} lt 24" th:text="学习阶段">23</td>
                <td th:if="${stu.age} ge 24" th:text="工作阶段">23</td>
                <!--<td th:text="${stu.age}">23</td>-->
                <td th:text="${#dates.format(stu.birthday,'yyyy-MM-dd')}">2018-01-02</td>
            </tr>
        </table>
    </center>
</body>
</html>
